package com.lpit.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 提现表
 * @TableName extract_record
 */
@TableName(value ="extract_record")
@Data
public class ExtractRecord implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer id;

    /**
     * 银行卡id
     */
    private Integer bankCardId;

    /**
     * 提现日期
     */
    private Date extractRecordTime;

    /**
     * 提现金额
     */
    private Double extractRecordMoney;

    /**
     * 提现状态
     */
    private String extractRecordStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExtractRecord other = (ExtractRecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBankCardId() == null ? other.getBankCardId() == null : this.getBankCardId().equals(other.getBankCardId()))
            && (this.getExtractRecordTime() == null ? other.getExtractRecordTime() == null : this.getExtractRecordTime().equals(other.getExtractRecordTime()))
            && (this.getExtractRecordMoney() == null ? other.getExtractRecordMoney() == null : this.getExtractRecordMoney().equals(other.getExtractRecordMoney()))
            && (this.getExtractRecordStatus() == null ? other.getExtractRecordStatus() == null : this.getExtractRecordStatus().equals(other.getExtractRecordStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBankCardId() == null) ? 0 : getBankCardId().hashCode());
        result = prime * result + ((getExtractRecordTime() == null) ? 0 : getExtractRecordTime().hashCode());
        result = prime * result + ((getExtractRecordMoney() == null) ? 0 : getExtractRecordMoney().hashCode());
        result = prime * result + ((getExtractRecordStatus() == null) ? 0 : getExtractRecordStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bankCardId=").append(bankCardId);
        sb.append(", extractRecordTime=").append(extractRecordTime);
        sb.append(", extractRecordMoney=").append(extractRecordMoney);
        sb.append(", extractRecordStatus=").append(extractRecordStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}